<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>FileList与file对象示例</title>
	</head>
	<script type="text/javascript">
		var file;
		function showName(){
			for(var i = 0; i< document.getElementById("file").files.length; i++ ){//弹出文件名
				file = document.getElementById("file").files[i];
				alert(file.name)
			}
		}
	</script>
	<body>
		<input id="file" type="file" multiple="multiple" />
		<input type="button" value="提交" onclick="showName();" />
	</body>
</html>
